package com.coolgor.coldot.entity.auth;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 本地用户实体类
 * 
 * @author CoolGor
 *
 */
public class Function implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1543544235422216327L;

	// 本地系统中功能的唯一标示functionID,数据库中自动增长
	@JsonProperty("function_id")
	private Long functionID;		
	// 功能名称，唯一
	@JsonProperty("function_name")
	private String functionName;	
	// 功能连接页面
	@JsonProperty("function_url")
	private String functionURL;		
	// 父节点的ID
	@JsonProperty("parent_id")
	private Long parentID;		
	// 排序 权重
	@JsonProperty("priority")
	private String priority;		
	// 说明 可以为空
	@JsonProperty("title")
	private String title;		
	// 状态 1=inuse 2=disuse
	@JsonProperty("status")
	private int status;	
	// 备注
	@JsonProperty("remark")
	private String remark;
	
	
	public Long getFunctionID() {
		return functionID;
	}
	public void setFunctionID(Long functionID) {
		this.functionID = functionID;
	}
	public String getFunctionName() {
		return functionName;
	}
	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
	public String getFunctionURL() {
		return functionURL;
	}
	public void setFunctionURL(String functionURL) {
		this.functionURL = functionURL;
	}
	public Long getParentID() {
		return parentID;
	}
	public void setParentID(Long parentID) {
		this.parentID = parentID;
	}
	public String getPriority() {
		return priority;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	@Override
	public String toString() {
		return "Function [functionID=" + functionID + ", functionName=" + functionName + ", functionURL=" + functionURL
				+ ", parentID=" + parentID + ", priority=" + priority + ", title=" + title + ", status=" + status
				+ ", remark=" + remark + "]";
	}	
}
